package org.ch00.test04.demo01;

/**
 * @author CSY
 * @date 2025 - 03 - 03
 */
public class JiaoWuTeacher {
    private String name;
    private String school;

    public JiaoWuTeacher() {
    }

    public JiaoWuTeacher(String name, String school) {
        this.name = name;
        this.school = school;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public void anPai(JavaTeacher javaTeacher) {
        System.out.println("教务老师职责 - 安排地点");
        System.out.println("教务老师职责 - 安排时间");
        javaTeacher.teach();
    }

    public void anPai(DotNetTeacher dotNetTeacher) {
        System.out.println("教务老师职责 - 安排地点");
        System.out.println("教务老师职责 - 安排时间");
        dotNetTeacher.teach();
    }
}
